package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDate;
import java.io.Serializable;

import org.springframework.format.annotation.DateTimeFormat;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuan_rz
 * @since 2019-01-22
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("GWEA_T")
public class GweaT extends PO<GweaT> {

    private static final long serialVersionUID = 1L;


    private String GWEAENT;

    /**
     * 税种编码
     */
    @TableId(value = "GWEA001", type = IdType.INPUT)
    private String GWEA001;

    /**
     * 税种名称
     */
    private String GWEA002;

    /**
     * 项别
     */
    private BigDecimal GWEA003;

    /**
     * 发票种类
     */
    private String GWEA004;

    /**
     * 性质
     */
    private BigDecimal GWEA005;

    /**
     * 含税率(%)
     */
    private BigDecimal GWEA006;

    /**
     * 含税否
     */
    private String GWEA007;

    /**
     * 有效否
     */
    private String GWEA008;

    private String GWEA101;

    private String GWEA102;

    private String GWEA103;

    private String GWEA104;

    private String GWEA105;

    private String GWEA106;

    private String GWEA107;

    private String GWEA108;

    /**
     * 所属营运中心
     */
    private String GWEAPLANT;

    /**
     * 所属法人
     */
    private String GWEALEGAL;

    /**
     * 资料有效码
     */
    private String GWEAACTI;

    /**
     * 资料所有者
     */
    @TableField(fill = FieldFill.INSERT)
    private String GWEAUSER;

    /**
     * 资料所有部门
     */
    @TableField(fill = FieldFill.INSERT)
    private String GWEAGRUP;

    /**
     * 资料修改者
     */
    @TableField(fill = FieldFill.UPDATE)
    private String GWEAMODU;

    /**
     * 资料时间
     */
    @TableField(fill = FieldFill.INSERT)
    private String GWEATIME;

    /**
     * 资料建立日期
     */
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWEADATE;

    /**
     * 资料建立部门
     */
    @TableField(fill = FieldFill.INSERT)
    private String GWEAORIG;

    /**
     * 资料建立者
     */
    @TableField(fill = FieldFill.INSERT)
    private String GWEAORIU;





    @Override
    protected Serializable pkVal() {
        return this.GWEAENT;
    }

}
